<?php
/* @var $this InstrumentController */

$this->breadcrumbs=array(
	'大型仪器共享系统'=>array('instrument'),
    $model->title,
);
?>
<?php
$this->menuitemName = '大型仪器共享系统';
$this->menuList = array();
$this->menuList[] = array('label'=>'返回仪器共享系统', 
    'url'=>'instrument/index'
);
$this->menuList[] = array('label'=>'预定信息查询', 
    'url'=>'instrument/reserveinfo'
);
?>
<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
        <h3 class="panel-title">
            <?php echo $model->title.' 详细信息'; ?>
        </h3>
    </div>
    <div class="panel-body" style="padding:25px" id="frontdatetable">

        <a class="btn btn-success pull-right" href="<?php echo yii::app()->baseUrl?>/instrument/index?search=<?php echo $model->title?>">前去预定</a>
<h2>大型仪器信息 #<?php echo $model->title; ?></h2>
        <table class="table table-bordered">
        <tbody>
            <tr>
                <td rowspan=5 colspan=4 style="width:300px">
                    <img src="<?php echo yii::app()->baseUrl.'/'.$model->resources->description.$model->resources->fileName?>" width=300px/>
                </td>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('price')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->price;?>
                </td>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('brand')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->brand;?>
                </td>

            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('status')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->getEnabledLable();?>
                </td>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('stock')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->stock;?>
                </td>

            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('model')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->model;?>
                </td>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('total_stock')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->total_stock;?>
                </td>

           </tr>
            <tr>
               
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('specification')); ?>:</b>
                </td>
                <td>
                   <?php echo $model->specification;?>
                </td>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('origin')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->origin;?>
                </td>
            </tr>
            <tr>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('contacts')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->contacts;?>
                </td>
                <td>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('place')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->place;?>
                </td>
            </tr>
            <tr>
                <td width=90>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('subordinate_units')); ?>:</b>
                </td>
                <td colspan=3>
                    <?php echo $model->subordinate_units;?>
                </td>
                <td width=90>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('production_date')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->production_date;?>
                </td>
                <td width=90>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('purchase_date')); ?>:</b>
                </td>
                <td>
                    <?php echo $model->purchase_date;?>
                </td>

            </tr>
            <tr>
                <td width=90>
	                <b><?php echo CHtml::encode($model->getAttributeLabel('manufacturer')); ?>:</b>
                </td>
                <td colspan=7>
                   <?php echo $model->manufacturer;?>
                </td>
            </tr>
        </tbody>
    </table>
    <?php echo $model->description?>
</div>
</div>
